#include "HalmaPiece.h"

#include <QPen>
#include <QBrush>
#include <QRadialGradient>
#include <QDebug>

HalmaPiece::HalmaPiece(const QColor &color){
    setRect(-16, -16, 32, 32);

    QRadialGradient gradient(0, 0, 16, 8, 8);
    gradient.setColorAt(0.0, Qt::white);
    gradient.setColorAt(1.0, color);
    setBrush(QBrush(gradient));
}


HalmaPiece::~HalmaPiece(){

}
